<?php
/**
 * Created by PhpStorm
 * User: 龍zero
 * Date: 2022-04-10
 * Time: 16:28
 */
namespace App\Resource;

use Hyperf\Resource\Json\ResourceCollection;

class PaginateCollection extends ResourceCollection
{
    /**
     * 暂时无用 无法出去外层封装data层
     * Transform the resource collection into an array.
     * @return array
     */
    public function toArray(): array
    {
        return [
            'item' => $this->collection,
        ];
    }
}
